package com.doone.telmarket.infrastructure.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Service;

import com.doone.telmarket.domain.Admin;
import com.doone.telmarket.infrastructure.dao.AdminDao;
import com.ibatis.sqlmap.client.SqlMapClient;

@Service("adminDao")
public class AdminDaoImpl extends SqlMapClientDaoSupport implements AdminDao {

	public String getPassWord(String userName) {
		Admin admin = (Admin)getSqlMapClientTemplate().queryForObject("Admin.checkPass",userName);
		return admin.getPassWord();
	}
	
	
	@Autowired
	public void setSqlMapClientBase(SqlMapClient sqlMapClient) {
		super.setSqlMapClient(sqlMapClient);
	}
 
}
